<%@ page import="com.jiuye.entity.User" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/18
  Time: 22:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setAttribute("omg1","估量你");
    User user = new User(1,"朱婷","1234","女","画虎","正在画画","找对象");
    application.setAttribute("omg2",user);
    Map<String, String> map = new HashMap<>();
    map.put("张三","20");
    map.put("李四","24");
    map.put("忙六","26");
    session.setAttribute("msg",map);
    ArrayList<User> list = new ArrayList<>();
    list.add(new User(2,"慢1","234","女","哈哈","sf1","sfsf1"));
    list.add(new User(3,"慢2","234","女","哈哈","sf2","sfsf2"));
    list.add(new User(4,"慢3","234","女","哈哈","sf3","sfsf3"));
    list.add(new User(5,"慢4","234","女","哈哈","sf4","sfsf4"));
    list.add(new User(6,"慢5","234","女","哈哈","sf5","sfsf5"));
    list.add(new User(7,"慢6","234","女","哈哈","sf56","sfsf6"));
    pageContext.setAttribute("omg4",list);
    Object[] arr ={"吴亦凡","都没住","罗志祥","慢慢"};
    application.setAttribute("omg5",arr);
%>
<%--获取--%>
<%--${requestScope.omg1}--%>
<%--${applicationScope.omg2.id}--%>
<%--${applicationScope.omg2.username}--%>
<%--${applicationScope.omg2.password}--%>
<%--${applicationScope.omg2.sex}--%>
<%--${applicationScope.omg2.hobby}--%>
<%--${applicationScope.omg2.work}--%>
<%--${applicationScope.omg2.sdesc}--%>
${sessionScope.msg[0]}
${sessionScope.msg[1]}
${sessionScope.msg[2]}

<%--${pageScope.omg4[0].password}<br>--%>
<%--${pageScope.omg4[1]}<br>--%>
<%--${pageScope.omg4[2]}<br>--%>
<%--${pageScope.omg4[3]}<br>--%>
<%--${pageScope.omg4[4]}<br>--%>
<%--${pageScope.omg4[5]}<br>--%>
<%--${applicationScope.omg5[0]}--%>
<%--${applicationScope.omg5[1]}--%>
<%--${applicationScope.omg5[2]}--%>
<%--${applicationScope.omg5[3]}--%>
</body>
</html>
